package com.dianping.cat.home.user.entity;

import com.dianping.cat.home.user.BaseEntity;
import com.dianping.cat.home.user.IVisitor;
import java.util.LinkedHashMap;
import java.util.Map;

public class UserConfig
  extends BaseEntity<UserConfig> {
/* 10 */   private Map<String, User> m_users = new LinkedHashMap();






/* 17 */   public void accept(IVisitor visitor) { visitor.visitUserConfig(this); }


  public UserConfig addUser(User user) {
/* 21 */     this.m_users.put(user.getId(), user);
/* 22 */     return this;
  }


  public boolean equals(Object obj) {
/* 27 */     if (obj instanceof UserConfig) {
/* 28 */       UserConfig _o = (UserConfig)obj;

/* 30 */       if (!equals(getUsers(), _o.getUsers())) {
/* 31 */         return false;
      }


/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public User findUser(String id) { return (User)this.m_users.get(id); }



/* 46 */   public Map<String, User> getUsers() { return this.m_users; }



  public int hashCode() {
/* 51 */     int hash = 0;

/* 53 */     return hash * 31 + ((this.m_users == null) ? 0 : this.m_users.hashCode());
  }




  public void mergeAttributes(UserConfig other) {}



/* 63 */   public User removeUser(String id) { return (User)this.m_users.remove(id); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/user/entity/UserConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */